
package com.tools.cleanmaster.model.db;

public class Decode {

    public static String encode(String paramString) {
        byte[] bytes = paramString.toLowerCase().getBytes();
        return a(bytes, bytes.length) + "";
    }

    private static int a(byte[] str, int slen) {
        int i = 0;
        long itemp, itemp1, itemp2;
        itemp = 0;
        itemp1 = 0;
        itemp2 = 0;
        while (i < slen) {
            itemp1 = (str[i] < 0 ? (256 + str[i]) : str[i]);
            itemp2 = itemp1 * a[0xFF & (i++)];
            while (itemp2 >= 0x100000000l) {
                itemp2 = itemp2 - 0x100000000l;
            }
            itemp = (itemp2 + itemp);
            while (itemp >= 0x100000000l) {
                itemp = itemp - 0x100000000l;
            }
        }
        return (int) itemp;
    }

    private static final long a[] = {
            15824477, 7761153, 7145686, 580925, 14499208, 4036269, 9875725, 11605750,
            1507777, 115335, 12748561, 8855010, 1960695, 15399149, 16317578, 16554616,
            10127548, 8963642, 12993288, 4396326, 1387123, 2782309, 7628746, 6803892,
            13744855, 12248289, 15002970, 15558948, 6894525, 3392505, 12844131, 16543731,
            7340988, 246640, 12808243, 7356403, 4192880, 16413743, 7618458, 4170164,
            10598447, 12073393, 3783992, 12401609, 3921293, 13996267, 9500965, 16330384,
            3055753, 10521614, 9181344, 1616204, 11095448, 5088057, 10698269, 4073427,
            2610974, 14098583, 2139463, 10832160, 4795125, 2816473, 16374730, 14408329,
            14325643, 9935226, 10060807, 8655145, 1126852, 3261729, 12919873, 2379285,
            5117796, 1534254, 6893447, 3116537, 9305119, 16525405, 2649532, 7192232,
            12496701, 11487646, 4827551, 11117529, 10740793, 14959571, 4448804, 14821491,
            2654722, 8520872, 307362, 11575876, 10637232, 5225154, 12240703, 13060954,
            4941623, 6765563, 3932631, 121596, 14351377, 16523130, 2067132, 9092623,
            12458026, 1586846, 3579800, 10460054, 10199183, 10525003, 10048928, 5614121,
            11153061, 3059786, 11554062, 5052848, 1684765, 11869865, 2012421, 11863806,
            461317, 656759, 358314, 7842389, 11164903, 6091338, 15880220, 5254162,
            2889552, 1528556, 5434759, 15567986, 9208253, 8504908, 12997777, 5545510,
            10365844, 2858622, 10387675, 8447358, 15042176, 8818485, 9387494, 4059007,
            15696653, 8592607, 1894323, 15185116, 11856727, 15426292, 6488987, 237971,
            10588979, 9649585, 4045507, 12240653, 13048154, 1664823, 6764713, 3715031,
            11524792, 14336927, 12823930, 11372275, 8846973, 16680422, 8779486, 16180949,
            15131990, 15033670, 6640949, 5585845, 3914405, 12232939, 11073370, 16213288,
            6633575, 3698101, 7190712, 12107581, 12536120, 4801711, 4502489, 11787652,
            14520291, 9433517, 15840895, 11964161, 9374998, 860031, 2064349, 8380175,
            14620527, 1539535, 8245383, 13668173, 9394896, 5953919, 14255354, 8718441,
            553429, 7460232, 13995905, 9408293, 9383551, 3049599, 8946190, 8525576,
            1511586, 1090439, 10717200, 8919763, 1760264, 14420410, 641180, 13147289,
            10266184, 10900060, 5400326, 6753138, 751831, 7919547, 14140152, 12781127,
            414707, 5501798, 15952771, 7050019, 9644571, 2761923, 2409930, 12962916,
            13398293, 7414412, 2265985, 9667394, 8604611, 4967347, 13350907, 12060795,
            558904, 8861832, 3707127, 9501368, 16433552, 12689562, 10528465, 10935200,
            14396166, 11211915, 1349211, 9854036, 6053366, 6159388, 16523821, 2244028
    };
}
